<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="project_contents">
	<h1>File</h1>
	<div class="project_in">
	<form class="right" action="project/file/fileUploadAction" method="post" enctype="multipart/form-data" id="projectFileUpload">
		<input type="file" name="projectfile">
		<input type="submit" value="파일업로드" class="btn">
	</form>
	<table id="project_file">
	<tr>
	<th>No.</th><th>파일명</th><th>크기</th><th>업로드</th><th>삭제</th>
	</tr>
	<c:forEach var="projectfilelist" items="${ProjectFileList }">
	<tr>
	<td>${projectfilelist.fileNo}</td>
	<td class="left"><a href="${projectfilelist.filePath }">${projectfilelist.fileName }</a></td>
	<td>${projectfilelist.fileSize}	 byte</td>
	<td><fmt:formatDate value="${projectfilelist.uploadDate}" pattern="YYYY/MM/dd hh:mm:ss"/> </td>
	<td><input type="button" value="삭제" onclick="deleteProjectFile(${projectfilelist.fileNo},'${projectfilelist.fileName }')"></td>
	</tr>
	</c:forEach>
	</table>
	</div>
</div>